﻿using Common;
using Common.LayPage;

namespace Sigma.Admin.API.Services
{
    public interface IBaseService<T>
    {
        Task<ApiResponse> GetAllAsync(QueryParameter query);

        Task<ApiResponse> GetSingleAsync(int id);

        Task<ApiResponse> AddAsync(T model);

        Task<ApiResponse> UpdateAsync(List<T> model);

        Task<ApiResponse> DeleteAsync(T model);

        Task<ApiResponse> DeleteAsync(List<T> model);
    }
}
